<%@ Import Namespace="MVCWeb.Helpers" %>

<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<IPagedList<MVCWeb.Models.Company>>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    <title>Index</title>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <table>
        <tr>
            <th>
            </th>
            <th>
                CompanyId
            </th>
            <th>
                Name
            </th>
            <th>
                PaymentURL
            </th>
            <th>
                CompanyUserId
            </th>
            <th>
                PayAddress1
            </th>
            <th>
                PayAddress2
            </th>
        </tr>
        <% foreach (var item in Model)
           { %>
        <tr>
            <td>
                <%= Html.ActionLink("Edit", "Edit", new { id=item.CompanyId }) %>
                |
                <%= Html.ActionLink("Details", "Details", new { id = item.CompanyId })%>
            </td>
            <td>
                <%= Html.Encode(item.CompanyId) %>
            </td>
            <td>
                <%= Html.Encode(item.Name) %>
            </td>
            <td>
                <%= Html.Encode(item.PaymentURL) %>
            </td>
            <td>
                <%= Html.Encode(item.CompanyUserId) %>
            </td>
            <td>
                <%= Html.Encode(item.PayAddress1) %>
            </td>
            <td>
                <%= Html.Encode(item.PayAddress2) %>
            </td>
        </tr>
        <% } %>
    </table>
    <div class="pager">
        <%= Html.Pager(ViewData.Model.PageSize, ViewData.Model.PageNumber, ViewData.Model.TotalItemCount) %>
    </div>
    <p>
        <%= Html.ActionLink("Create New", "Create") %>
    </p>
</asp:Content>
